﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RoleList.aspx.cs" Inherits="Sdepci.InfoCode.Web.Authority.RoleList" %>
<%@ Register src="../Includes/VerifyLoginState.ascx" tagname="VerifyLoginState" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>角色管理</title>
    <link rel="stylesheet" type="text/css" href="../Css/Style.css" />
    <link rel="stylesheet" type="text/css" href="../Css/Backstage.css" />
    <script type="text/javascript" src="../Javascript/MyGrid.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <uc1:VerifyLoginState ID="VerifyLoginState1" runat="server" />
    <div id="container">
        <div id="listregion">
            <table style="width: 100%;" id="tblCheck">
                <caption>角色管理</caption>
                <thead>
                    <tr>
                        <td style="width: 10%;">
                            <label id="lblCheck" title="false" style="cursor: pointer; padding: 0px 2px 2px 2px;" onclick="javascript:SelectAll('lblCheck','ItemId','tblCheck');">全选</label>
                        </td>
                        <td style="width: 40%;">角色名称</td>
                        <td style="width: 20%;">是否默认角色</td>
                        <td style="width: 15%;">排序号</td>
                        <td style="width: 15%;">编辑</td>
                    </tr>
                </thead>
                <tbody id="MyGridTemplate" runat="server">
                    <tr>
                        <td><input type="checkbox" name="ItemId" value="{RoleGuid}" onclick="javascript:CancelAll('lblCheck','ItemId','tblCheck');" /></td>
                        <td>{RoleName}</td>
                        <td>{DefaultRoleString}</td>
                        <td>{Seq}</td>
                        <td>[<a href="RoleEdit.aspx?RoleGuid={RoleGuid}">修改</a>]</td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div id="buttonregion">
            <asp:Button ID="btnSetDefault" CssClass="button" runat="server" Text="设为默认" UseSubmitBehavior="false" OnClientClick="javascript:if(!BeforeModify('ItemId')) return false;" onclick="btnSetDefault_Click" />
            <asp:Button ID="btnAdd" CssClass="button" runat="server" Text="增加" UseSubmitBehavior="false" onclick="btnAdd_Click" />
            <asp:Button ID="btnModify" CssClass="button" runat="server" Text="修改" UseSubmitBehavior="false" OnClientClick="javascript:if(!BeforeModify('ItemId')) return false;" onclick="btnModify_Click" />
            <asp:Button ID="btnDelete" CssClass="button" runat="server" Text="删除" UseSubmitBehavior="false" OnClientClick="javascript:if(!BeforeDelete('ItemId')) return false;" onclick="btnDelete_Click" />
        </div>
    </div>
    </form>
</body>
</html>
